#ifndef _CAR_HARDWARE_UART_H
#define _CAR_HARDWARE_UART_H

class CarHardwareBase;

typedef struct{
    int speed;
}uart_param_t;

#define CN_CAR_UART_DEFAULT_PATH    "/dev/ttymxc3"
#define CN_CAR_UART_DEFAULT_SPEED   115200
class CarHardwareUart : public CarHardwareBase{
private:
	char mDevPath[64];
	int mfd;
	car_hardware_param_t mPara;
	uart_set(int fd, int speed,int bits,int stop_bits,int parity);
    void uart_init(char *path, int speed);
};


#endif /* _CAR_HARDWARE_UART_H */
